<?php
/**
 * Created by PhpStorm.
 * User: 17208
 * Date: 2019/6/13
 * Time: 16:08
 */

namespace app\common\lib;
use think\facade\Cache;

class Redis
{
    /** 读取缓存 */
    public static function get($name){
        return Cache::store('redis')->get($name);
    }
    /** 写入缓存 */
    public static function set($name,$value,$expire=0){
        return Cache::store('redis')->set($name,$value,$expire);
    }
    /** 删除缓存 */
    public static function rm($name){
        return Cache::store('redis')->rm($name);
    }
}